package com.summerbird.mallchat.common.user.domain.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class ModifyNameReq {
    @ApiModelProperty("新的用户名")
    @NotBlank(message = "名字不能为空的哟~")
    @Length(max = 6, message = "用户名不可用取太长，不然记不住哦~")
    private String name;

}
